import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/pages/home/home'
import newHome from '@/pages/home/new-home'
import City from '@/pages/city/City'
import selectCard from '@/pages/home/views/selectCard'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: newHome
    },
    {
      path: '/city',
      name: 'City',
      component: City
    },
    {
      path: '/new-home',
      name: 'new-home',
      component: newHome
    },
    {
      path: '/selectCard',
      name: 'selectCard',
      component: ()=>import("@/pages/home/views/selectCard")
    },
    {
      path: '/redEnvelopes',
      name: 'redEnvelopes',
      component: ()=>import("@/pages/home/views/redEnvelopes")
    },
    {
      path: '/sureRedEnvelopes',
      name: 'sureRedEnvelopes',
      component: ()=>import("@/pages/home/views/sure-redEnvelopes")
    },
    {
      path: '/selectShop',
      name: 'selectShop',
      component: ()=>import("@/pages/home/views/selectShop")
    },
    
    {
      path: '/paySuccess',
      name: 'paySuccess',
      component: ()=>import("@/pages/home/views/paySuccess")
    },
    {
      path: '/payFailed',
      name: 'payFailed',
      component: ()=>import("@/pages/home/views/payFailed")
    },
    {
      path: '/myOrder',
      name: 'myOrder',
      component: ()=>import("@/pages/home/views/myOrder")
    },
    {
      path: '/orderDetail',
      name: 'orderDetail',
      component: ()=>import("@/pages/home/views/orderDetail")
    },

  ]
})
